home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Core Concepts in Art 2
/
Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso
/
mac
/
media
/
search.swf
/
scripts
/
DefineButton2_63
/
BUTTONCONDACTION on(release).as
next >
Wrap
Text File
|
2003-10-12
|
1KB
|
46 lines
on(release){
i = 0;
while(i < chapterArray[theChapter].length)
{
titlesHolder["titles" + i].pointer._visible = 1;
theTextColor = new Color("titlesHolder.titles" + i + ".title");
theChapterColor = new Color("titlesHolder.titles" + i + ".chapterHolder.chapNum");
theTextColor.setRGB(0);
theChapterColor.setRGB(0);
if(this["chp" + theChapter] == undefined)
{
this["chp" + theChapter] = new Array();
}
var count = 0;
c = 0;
while(c < listTotal)
{
if(listItemsHolder["item" + c].title != titleBuilder_mc.titleArray[i])
{
count++;
}
c++;
}
if(count == listTotal)
{
this["chp" + theChapter].push(i);
duplicateMovieClip(listItemsHolder.item,"item" + listTotal,16384 + (400 + listTotal));
b = 0;
while(b < 6)
{
listItemsHolder["item" + listTotal][titleBuilder_mc.variables[b]] = titleBuilder_mc[titleBuilder_mc.variables[b] + "Array"][i];
b++;
}
listItemsHolder["item" + listTotal]._y = listTotal * 15 - 1.5;
listTotal++;
}
i++;
}
if(listTotal > 10)
{
down_btn._visible = 1;
}
deselect_btn._visible = 1;
select_btn._visible = 0;
}